﻿@model Forest.Cat.Web.Models.Jobseekers.RegisterModel
@{
    ViewBag.Title = "用户注册";
    Layout = "~/Views/Shared/_NormalRoot.cshtml";
}
<script type="text/javascript">
    $(document).ready(function () {
        $('#btnRegister').bind('click', function () {
            if ($('#txtPassword').val() != $('#txtConfirmPassword').val()) {
                alert('两次密码输入不一致，请重新输入！');
                $('#txtPassword').val("");
                $('#txtConfirmPassword').val("");
                return false;
            }
        });
    });
</script>
<div class="register_main">
    <div class="register_title">
        欢迎加入新世纪人才网</div>
    <div class="register_box">
        <div class="register_ads">
            <a href="#">
                <img src="/Themes/DarkOrange/Content/images/register_ads.jpg" width="522" height="309" /></a></div>
        <div class="register_messages">
            @using (Html.BeginForm("Register", "Jobseeker", FormMethod.Post))
            { 
                @Html.ValidationMessage("EmailExist")
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="right">
                            <label>
                                电子邮件：</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(x => x.Email, new { @class = "registerInput" })<br />
                            @Html.ValidationMessageFor(x => x.Email)
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <label>
                                真实姓名：</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(x => x.UserName, new { @class = "registerInput" })<br />
                            @Html.ValidationMessageFor(x => x.UserName)
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <label>
                                密码：</label>
                        </td>
                        <td>
                            @Html.PasswordFor(x => x.Password, new { @class = "registerInput", @id = "txtPassword" })<br />
                            @Html.ValidationMessageFor(x => x.Password)
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <label>
                                重复密码：</label>
                        </td>
                        <td>
                            @Html.PasswordFor(x => x.ConfirmPassword, new { @class = "registerInput", @id = "txtConfirmPassword" })<br />
                            @Html.ValidationMessageFor(x => x.Password)
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <input type="checkbox" class="shenming" value="false" /><a href="\htmls\site\agreement.htm"
                                target="_blank">我已经阅读过声明</a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <input id="btnRegister" type="image" src="/Themes/DarkOrange/Content/images/register_btns.jpg"
                                class="register_btns" />
                        </td>
                    </tr>
                </table>
            }
        </div>
        <div class="cl">
        </div>
    </div>
</div>
